<?php
            


/**
 * Author: cbw
 * Desc: 代言模式
 * Time: 2022/1/6 2:30 下午
 * Email: 17854288794@163.com
 */
$yx_dy_rules = [];
$yx_dy_rule_ids = $_P['yx_dy_rule_id'];
$yx_dy_rule_content = $_P['yx_dy_rule_content'];
if (is_array($yx_dy_rule_ids)){
    foreach ($yx_dy_rule_ids as $k =>$v){
        $dd = ['rule_content'=>$yx_dy_rule_content[$k]];
        $yx_dy_rules[] = $dd;
    }
}


$tempconfig = [
    'yx_dy_rules' => $yx_dy_rules,//活动规则
];
$config =array_merge($config,$tempconfig);